package com.dex4d.core;
import android.os.Bundle;
import android.view.View;

/**
 * Created by chengyuchun on 2018/10/17.
 */
public abstract class AppToolbarBaseFragment extends AppBaseFragment {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initToolbar((AppToolBarBaseActivity) mContext);
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        if (!hidden) {
            initToolbar((AppToolBarBaseActivity) mContext);
        }
    }

    protected  void initToolbar(AppToolBarBaseActivity mContent){
        mContent.mToolbar.setVisibility(View.VISIBLE);
    }
}